<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>小机器人</title>
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<style type="text/css">
.divForm {
	width: 450px;
	height: 387px;
}

.divText {
	border: groove;
	width: 100%;
	height: 127px;
}

.divMessage {
	border: groove;
	width: 100%;
	height: 260px;
}

.text {
	width: 270px;
}
        </style>
		<script src="<%=basePath%>js/jquery.js"></script>
		<script src="<%=basePath%>js/robot.js"></script>
	</head>
	<body>
		<div class="divForm">
			<div class="divMessage">
				<!-- 信息显示部分 -->
				<div style="height: 260px;overflow-y: scroll;" id="message">
					<font size="-1" >
					<b>机器人: 您好，我是24小时在线的客服机器人。为了我能更好的回答您的问题请您:</b><br/>
					&nbsp;&nbsp;   * 一次只问一个问题<br/>
					&nbsp;&nbsp;   * 而且问题尽量简短。<br/>
					&nbsp;&nbsp;   * 如果您觉得小易没能回答您的问题，请尝试换个方法描述问题。或点击<a href="/chat/chat_loginUser.action">人工服务</a>提升服务。<br/>
					&nbsp;&nbsp;   * 请勿输入任何个人信息，如姓名、电子邮件、信用卡号等。<br/>
					&nbsp;&nbsp;   * 另外，小机器人我刚诞生不久，还需要不断学习才能进步，请您多多关照啦! :)<br/>
					</font>
				</div>
			</div>
			<div class="divText">
				<div>
					选择类型	<a style="float: right;" href="/chat/chat_loginUser.action">人工服务</a>
					<div id="type"></div>
				</div>
				<input type="hidden" name="user" id="user" value="${user }" />
				<input type="hidden" id="typeid" value="a" />
			 <table width="446" height="25">
			<tbody id="sss">
				 <tr>
				 	<td width="380"> <div style="margin: auto;">
						<input name="question" type="text" class="text" id="question"  onchange="find()" onKeyDown="find()" onKeyUp="find(),finds()"/>
							<button  id="sub" onClick="questions()" style="height:20px;" >
							发送
							</button><br/>
							<div style="float: left;position: absolute" id="showMessage"></div>
					</div>
				   </td>
					<td width="53">
						<span style="float: right; margin-right: 3px;">
						<img width="13px" height="13px" src="" /> <span id="count">30</span>
						<span>				</td>
				 </tr>	
			 </tbody>
			 </table>
			 
			</div>
		</div>
	</body>
</html>
